<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Event</title>
</head>
<body>
<script src="../js/react.min.js"></script>
<script src="../js/react-dom.min.js"></script>
<script src="../js/JSXTransformer.js"></script>
<script type="text/jsx">
  "use strict"

  const SignupForm = React.createClass({
    getInitialState() {
      return {
        backgroundColor: '#FFFFFF'
      }
    },
    handleWheel() {
      let newColor = (parseInt(this.state.backgroundColor.substr(1), 16) + 997).toString(16);
      this.setState({ backgroundColor: '#' + newColor.substr(newColor.length - 6).toUpperCase() })
    },
    render() {
      console.log(this.state);
      return <div onWheel={this.handleWheel} style={this.state}>
          <h1> Hello World </h1>
        </div>
    }
  })

  ReactDOM.render(<SignupForm/>, document.body)

</script>
</body>
</html>